﻿using MultiLang;
// Не исправлять ApplicationInfo.cs руками, файл генерируется автоматически
// Для изменения править ApplicationInfo.template.cs

using System;

using Rsdn.SmartApp;

namespace Rsdn.Janus
{
	public class ApplicationInfo
	{
		public const string ApplicationName = "RSDN@Home";                  //MLHIDE
		public const string VersionString = "1.2.0.$WCREV$";                //MLHIDE
		public const string Release = "alpha 5-AN-R8";                      //MLHIDE
		public const string Company = "RSDN Team";                          //MLHIDE
		public const string Copyright = "Copyright © by RSDN Team (http://rsdn.ru), 2002-2011"; //MLHIDE

		public const string ResourcesNamespace = "Rsdn.Janus.Resources.";   //MLHIDE
		
		public const string MachineConfigFolder = "Janus";                  //MLHIDE
		public const string AppDataFolder = "Janus";                        //MLHIDE

		public static readonly Version Version = new Version(VersionString);

        public static string FullVersion
        {
            get
            {
                return
                    "{0}.{1}.{2} {3} {4} {5}"                         //MLHIDE
                        .FormatStr(
                            Version.Major,
                            Version.Minor,
                            Version.Build,
                            Release,
                            ml.ml_string(8, "ревизия"), //revision
                            Version.Revision);
            }
        }

        public static string NameWithVersion
        {
            get
            {
                string version = ml.ml_string(9, "версия");//version
                return ApplicationName + " " +                        //MLHIDE
                    version.ToLower() +
                    " " + FullVersion;                                //MLHIDE
            }
        }

		public static string NameWithVersionAndCopyright
		{
			get { return NameWithVersion + ", " + Copyright; }                 //MLHIDE
		}
	}
}